{{extend './layout/layout.html'}}
{{block 'head'}}
<link rel="stylesheet" href="/public/css/header.css">
<link rel="stylesheet" href="/public/css/new.css">
{{/block}}
{{block 'content'}}
<!-- 引入头部 -->
{{include './component/web-header.html'}}
<!-- body start-->
<div class="container">
<nav aria-label="breadcrumb">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a class="pink-link" href="/my">我的博客</a></li>
        <li class="breadcrumb-item active" aria-current="page">新建</li>
    </ol>
</nav>
<div class="form">
    <form method="POST" action="/new">
        <div class="form-group">
          <label for="exampleInputEmail1">标题</label>
          <input name="title" type="text" required class="form-control" id="exampleInputEmail1">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">类别</label>
          <input name="type" type="text" required class="form-control" id="exampleInputEmail1" value="其他">
        </div>
        <div class="form-group">
          <div class="form-group">
            <label for="">描述</label>
            <textarea class="form-control" name="description" id="description" rows="3"></textarea>
            <small id="emailHelp" class="form-text text-muted">markdown的简单描述.</small>
          </div>
        </div>
        <div class="form-group">
            <div class="form-group">
              <label for="">markdown</label>
              <textarea class="form-control" name="content" id="content" rows="8"></textarea>
            </div>
          </div>
        <button type="submit" class="btn btn-primary">Submit</button>
      </form>
</div>
{{if user}}
{{else}}
<h1>请登录</h1>
{{/if}}
</div>
<!-- body end -->
{{/block}}

{{block 'script'}}
{{/block}}